var status = -1;
var selectionLog = [];

function start(d, c, b) {
    if (status == 0 && d == 0) {
        qm.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        qm.dispose()
    } else {
        if (status == a++) {
            qm.dispose();
            qm.openNpc("副本_好友故事_Act1_怒拳闹事者")
        }
    }
}

function end(d, c, b) {
    if (status == 0 && d == 0) {
        qm.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        qm.dispose()
    } else {
        if (status == a++) {
            qm.sendNormalTalk_Bottom("呃呃……不要无视我……我可是这所学校的老大……", 37, 1530232, false, true)
        } else {
            if (status === a++) {
                qm.sendNormalTalk_Bottom("……你还好吗？", 56, 1530232, true, true)
            } else {
                if (status === a++) {
                    qm.sendNormalTalk_Bottom("……妈妈，这汤太咸了……（嘟哩嘟囔）……\r\n#b（身上没有受伤，估计过一会儿自己就会醒过来了。）#k", 37, 1530232, true, true)
                } else {
                    if (status === a++) {
                        qm.forceCompleteQuest(32716);
                        qm.forceCompleteQuest(32755);
                        qm.gainExp(Math.pow(qm.getLevel(), 3));
                        qm.forceForfeitQuest(33036);
                        qm.dispose();
                        qm.warp(330001600, 0)
                    }
                }
            }
        }
    }
};